<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <script type="text/javascript" src="http://localhost/test/static/jquery-1.9.1.min.js"></script>
</head>
<body>
ants html
<script type="text/javascript">
    $(function () {
        $.ajax({
            type: "PUT",
            contentType:"application/json",
            url: "${ctx}/test/redis",
            data: JSON.stringify({
                "name":["张三", "李四", "王五"],
                "age": 12232322
            }),
            success: function (res) {
                alert(JSON.stringify(res));
            }
        });
    });
</script>
</body>
</html>